home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Web Graphics with Shout 3D
/
Interactive Web Graphics With Shout 3D.iso
/
mac
/
Shout3Ddemo
/
S3D_2E1.exe
/
Shout3d_runtime
/
codebase
/
models
/
segmentedAnimationTest.wrl
< prev
next >
Wrap
Text File
|
2000-11-12
|
3KB
|
140 lines
#VRML V2.0 utf8
#Cosmo Worlds V2.0
WorldInfo {
info "Test for breaking animation into 3 parts"
}
DEF TIMER TimeSensor {
loop true
}
DEF FRACTION_REMAPPER FractionRemapper {
timeScale 30
startKey 0
endKey 10
}
DEF _0 Transform {
children [
Shape {
appearance Appearance {
material Material {
}
}
geometry DEF _1 IndexedFaceSet {
coord Coordinate {
point [ -1 1 1,
-1 -1 1,
1 1 1,
1 -1 1,
1 1 -1,
1 -1 -1,
-1 1 -1,
-1 -1 -1 ]
}
coordIndex [ 0, 1, 3, 2, -1, 4, 5, 7,
6, -1, 6, 7, 1, 0, -1, 2,
3, 5, 4, -1, 6, 0, 2, 4,
-1, 1, 7, 5, 3, -1 ]
creaseAngle 0.5
normalIndex [ ]
}
}
DEF UnnamedAnimation0 Group {
children [
DEF POS_INTERP_1 PositionInterpolator {
timeScale 30
key [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30 ]
keyValue [ 0 1 0,
-0.583508 0.978826 -0.0296143,
-1.2548 0.936479 -0.0620831,
-1.8822 0.904719 -0.0931246,
-2.33403 0.915305 -0.118457,
-2.47863 1 -0.1338,
-2.36846 1.1774 -0.141025,
-2.15702 1.42784 -0.145218,
-1.86421 1.72568 -0.146912,
-1.5099 2.04531 -0.146645,
-1.11399 2.36108 -0.14495,
-0.696346 2.64737 -0.142363,
-0.276867 2.87854 -0.13942,
0.124568 3.02896 -0.136654,
0.488075 3.073 -0.134603,
0.793769 2.98503 -0.1338,
1.06652 2.55089 -0.135039,
1.32969 1.71059 -0.137764,
1.56116 0.669719 -0.14049,
1.73878 -0.366121 -0.141729,
1.84041 -1.19133 -0.139994,
1.84393 -1.60031 -0.1338,
1.75912 -1.64423 -0.123632,
1.61802 -1.53213 -0.111261,
1.4319 -1.29522 -0.0971288,
1.21201 -0.964688 -0.0816748,
0.96961 -0.571749 -0.0653398,
0.715951 -0.147607 -0.0485644,
0.462291 0.276536 -0.0317889,
0.219888 0.669473 -0.0154539,
0 1 0 ]
}
DEF ROT_INTERP_1 OrientationInterpolator {
timeScale 30
key [ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12,
13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24,
25, 26, 27, 28, 29, 30 ]
keyValue [ 0 0 1 0,
0 0 -1 0.0367937,
0 0 -1 0.0886569,
0 0 -1 0.152769,
0 0 -1 0.226303,
0 0 -1 0.306436,
0 0 -1 0.390345,
0 0 -1 0.475205,
0 0 -1 0.558194,
0 0 -1 0.636488,
0 0 -1 0.707262,
0 0 -1 0.767694,
0 0 -1 0.814959,
0 0 -1 0.846234,
0 0 -1 0.858695,
0 0 -1 0.849519,
0 0 -1 0.713551,
0 0 -1 0.451372,
0 0 -1 0.124552,
0 0 1 0.205344,
0 0 1 0.476748,
0 0 1 0.628092,
0 0 1 0.647289,
0 0 1 0.617989,
0 0 1 0.551443,
0 0 1 0.4589,
0 0 1 0.351612,
0 0 1 0.240827,
0 0 1 0.137797,
0 0 1 0.0537702,
0 0 1 0 ]
}
]
}
DEF TOUCH_SENSOR TouchSensor {
}
]
translation 0 1 0
rotation 0 0 1 0
}
Viewpoint {
position -3.23406 4.56847 6.14924
orientation -0.633779 -0.749128 -0.192698 0.696482
fieldOfView 0.785398
}
ROUTE TOUCH_SENSOR.touchTime TO TIMER.startTime
ROUTE TIMER.fraction TO FRACTION_REMAPPER.inFractionROUTE FRACTION_REMAPPER.outFraction TO POS_INTERP_1.fractionROUTE FRACTION_REMAPPER.outFraction TO ROT_INTERP_1.fraction
ROUTE POS_INTERP_1.value TO _0.translation
ROUTE ROT_INTERP_1.value TO _0.rotation